package org.jash.document.net

import okhttp3.ResponseBody
import org.jash.common.net.entity.ApiRes
import org.jash.document.entity.FileEntity
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Url

interface DocService {
    @POST("document/seldocuments")
    suspend fun selDocuments(@Body body:Map<String, @JvmSuppressWildcards Any>):ApiRes<List<FileEntity>>
    @POST("document/deldocuments")
    suspend fun delDocuments(@Body body:Map<String, @JvmSuppressWildcards Any>):ApiRes<Any?>
    @GET
    suspend fun download(@Url url:String): ResponseBody

}